package cn.yangliu.nacos.management.service.sys;

import cn.yangliu.jpa.base.service.JpaService;
import cn.yangliu.nacos.management.entity.sys.Role;
import cn.yangliu.nacos.management.model.RoleInsertModel;
import cn.yangliu.nacos.management.model.RoleUpdateModel;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface RoleService extends JpaService<Role, Long> {

    /**
     * Insert role.
     *
     * @param model the model
     * @return the role
     */
    Role insert(RoleInsertModel model);

    /**
     * Update role.
     *
     * @param model the model
     * @return the role
     */
    Role update(RoleUpdateModel model);
}
